package org.anderground.editor.edits;

import javax.swing.undo.UndoableEdit;

/**
 * 
 * @author Eldar Abusalimov (eldar.abusalimov@gmail.com)
 * 
 */
public abstract class Action {

	private boolean done = false;

	abstract UndoableEdit perform() throws ActionException;

	/**
	 * @return the done
	 */
	final boolean isDone() {
		return done;
	}

	/**
	 * marks the Action as performed
	 */
	final void setDone() {
		this.done = true;
	}

}
